package com.njwb.day15.dao;

import com.njwb.day15.pojo.Student;

import java.sql.SQLException;
import java.util.List;

//定义数据操作的规范，标准，能力
public interface StudentDao {

    int addStudent(Student stu) throws SQLException;


    int updateStudent(Student stu) throws SQLException;


    int deleteStudentById(int sid) throws SQLException;


    Student findStudentById(int sid) throws SQLException;

    List<Student> queryAllStudents() throws SQLException;


}
